home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000039_icon-group-sender _Wed Feb 19 01:24:05 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Received: by cheltenham.cs.arizona.edu; Thu, 20 Feb 1997 07:52:48 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 19 Feb 1997 01:24:05 GMT
  4. From: espie@bireme.ens.fr (Marc Espie)
  5. Message-Id: <5edknl$791@nef.ens.fr>
  6. Organization: Ecole Normale Superieure, Paris
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: X-Tiles, a puzzle in Icon
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10. Status: RO
  11. Content-Length: 2909
  12.  
  13. Fed up with all these postings having nothing to do with our beloved 
  14. newsgroup ?
  15.  
  16. Beginning to believe you are the sole user of Icon left alive ?
  17.  
  18. This is to announce the first public release of X-Tiles, a graphics
  19. game (puzzle) written in Icon.
  20.  
  21. The game is rather simple: you are treated to a rectangular playfield
  22. filled with rectangular tiles of various colors. You have to remove all
  23. tiles, knowing you can only remove connected sets of tiles of the same
  24. color. The scoring system heavily favors the removal of big sets of
  25. tiles (for a set s, you score (*s-2) * (*s -2) )
  26. When you remove such a set, all tiles above fall down. Then, if there
  27. are empty columns, other columns slide leftward to fill the gaps
  28.  
  29. This is a complete game with nice graphics. You can even set up your
  30. own background picture.
  31.  
  32. THIS IS THE FIRST PUBLIC RELEASE !!! THERE ARE UNDOUBTEDLY *BUGS*
  33. LURKING AROUND... You've been warned !!!
  34.  
  35. Please check
  36. <URL:ftp://ftp.ens.fr/pub/dmi/users/espie/X-Tiles/X-Tiles-3.3.tgz>
  37.  
  38. You might wish to get 
  39. <URL:ftp://ftp.ens.fr/pub/dmi/users/espie/X-Tiles/x-tiles-snapshot.gif>
  40. as well for an inkling of what the game looks like.
  41.  
  42. It should work under any recent Icon system that supports graphics... as such,
  43. I have only tested it under Unix in both color and black and white.
  44.  
  45. Feel free to redistribute, put it into the icon `contrib' area, etc.
  46.  
  47. Outside of being a rather funny little game, the program itself might
  48. be of interest, as it uses quite a few of Icon specific features.  (On the 
  49. other side, I tend to obfuscate by using all of Icon niceties at once)
  50. I believe it is a good example of `rapid prototyping': using the original
  51. crude version of the program, it was easy to add various improvements.
  52. Also, it is rather small compared to everything it does:
  53. wc X-Tiles.icn -> 828    2710   18419 
  54. (stripping comments and blank lines gives: 569    1791   12775)
  55.  
  56.  
  57. It also shows why the Icon compiler still is useful sometimes... For
  58. sizes over 25x25, there is a definite difference in feeling between the
  59. compiled and the interpreted version.
  60.  
  61. Although the original game algorithm was already not quite trivial to get 
  62. right, the current program also tries very hard to compute a minimal set 
  63. of changes to display...  Considering that connected sets of tiles are 
  64. displayed as one big block with only the border highlighted, this can get 
  65. rather messy.
  66.  
  67. There are lots of areas (following up on the mouse pointer, bitmap images,
  68. intricate color handling) where this code clarified lots of things for me.
  69.  
  70. Anyway, feel free to read the code and discuss anything you deem 
  71. interesting... There are probably quite a few areas where this program
  72. could be more elegant.
  73. -- 
  74. [nosave]<http://www.eleves.ens.fr:8080/home/espie/index.html>
  75. microsoft network is EXPLICITLY forbidden to redistribute this message.
  76. `Seiza no matataki kazoe, uranau koi no yuku e.'
  77.     Marc Espie (Marc.Espie@ens.fr)
  78.